package com.ithuang.websocket.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ithuang.websocket.config.Message;
import com.ithuang.websocket.dao.messageDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class messageServiceimp  extends ServiceImpl<messageDao, Message> implements messageService {
    @Autowired
    messageDao messageDao;
    @Override
    public List getPage(long current, long size) {
        IPage page= new Page(current,size);
            return (List) messageDao.selectMapsPage(page,null);
    }
}
